<?php if (!empty($this->errors)):
	$i = 1;
?>

<div class="error_panel">
<b>Errors:</b><br>
<?php foreach ($this->errors as $name => $error_arr):
	if (!is_array($error_arr)) $error_arr = array($error_arr);
	foreach ($error_arr as $error):?>	
		<?php echo $i++;?> . 
		
		<?php 
			echo $error;
		?>
		<br>
	<?php endforeach;?>
<?php endforeach;?>
</div>

<?php endif;?>